﻿
function getScreenSize(){
	var f,g;
	if(document.documentElement&&document.documentElement.clientHeight){
		f=document.documentElement.clientWidth;
		g=document.documentElement.clientHeight
	}else{
		if(document.body){
			f=document.body.clientWidth;
			g=document.body.clientHeight
		}
	}
	if(Prototype.Browser.Opera){
		f=self.innerWidth-18;
		g=self.innerHeight-18
	}
	return {width:f,height:g}
}

function resized(){
	size=getScreenSize();
	size.height = size.height - Element.getHeight($("panel"));
	$("webiframe").style.top="0px";
	$("webiframe").style.left="0px";
	$("webiframe").style.width=size.width+"px";
	$("webiframe").style.height=size.height+"px"
}

function loadOutSite(){
	var turnOffScroll = function(e) {
		document.body.style.overflow="hidden";
		document.body.parentNode.style.overflow="hidden";
		document.body.scrollTop=0;
		document.body.parentNode.scrollTop=0;
	}
	Event.observe(window,"resize",resized);
	resized();
	return false
}
